# -*- coding: utf-8 -*-
"""
@Time ： 2023/10/9 19:54
@Auth ： y.h
@File ：judge_col_is_value_entity.py
@IDE ：PyCharm
@Motto：The sooner you start to code, the longer the program will take. —— Roy Carlson
"""


class 配置筛选列值:
    __file_name = None
    __sheet_name = None
    __col_value = None
    __value_list = []

    def get_file_name(self):
        return self.__file_name

    def 配置文件名(self, file_name):
        wb_name = file_name.split("/")[-1].split(".")[0]
        self.__file_name = wb_name
        return self

    def get_sheet_name(self):
        return self.__sheet_name

    def 配置表名(self, sheet_name):
        self.__sheet_name = sheet_name
        return self

    def get_col_value(self):
        return self.__col_value

    def 配置筛选的列(self, col: str):
        self.__col_value = col
        return self

    def get_value_list(self):
        return self.__value_list

    def 配置筛选值(self, value_lst):
        if type(value_lst) != type(list()):
            self.__value_list.append(value_lst)
        else:
            self.__value_list.extend(value_lst)
        return self
